package com.tebie.cloud.task.server.controller;

import com.tebie.cloud.task.server.service.OrderSchedulerService;
import com.tebie.cloud.task.server.service.ReserveSchedulerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ReserveSchedulerController {

    @Autowired
    ReserveSchedulerService reserveSchedulerService;

//    /**
//     * 弃用---2019/11/01
//     */
//    @Scheduled(cron="0 0/5 * * * ?")
//    public void orderStatusByNotPay() {
//        int status = 6;//排号状态：6过号
//        reserveSchedulerService.doReserveStatusByExpiredJob(status);
//    }

}
